package com.shuiyun.chat.entity.message;

import com.shuiyun.chat.enums.MessageType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author shuiyun
 * @program chatServer
 * @description 发送群消息
 * @create 2021-05-14 17:35
 **/
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class SendGroupMessage extends Message{

    @ApiModelProperty("群聊ID")
    private Long groupId;

    @ApiModelProperty("自己的用户名")
    private String userName;

    @ApiModelProperty("发送的消息")
    private String message;

    @Override
    public int getMessageType() {
        return MessageType.SEND_GROUP_MESSAGE.getType();
    }
}
